﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(payInfoMetadata))]//使用payInfoMetadata对payInfo进行数据验证
    public partial class payInfo : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        [Display(Name = "contractId")]
        public string contractIdOld { get; set; }
        
        #endregion

    }
    public class payInfoMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "ID", Order = 1)]
			public object ID { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "contractId", Order = 2)]
			[Required(ErrorMessage = "不能为空")]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object contractId { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "payName", Order = 3)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object payName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "proportion", Order = 4)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object proportion { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "payMoney", Order = 5)]
			public object payMoney { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "payTime", Order = 6)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? payTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "actualTime", Order = 7)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? actualTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "actualPay", Order = 8)]
			public object actualPay { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "payNumber", Order = 9)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object payNumber { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "remark", Order = 10)]
			[StringLength(2000, ErrorMessage = "长度不可超过2000")]
			public object remark { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "checkReceipt", Order = 11)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object checkReceipt { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreateTime", Order = 12)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreatePerson", Order = 13)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdateTime", Order = 14)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? UpdateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdatePerson", Order = 15)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object UpdatePerson { get; set; }


    }


}

